package com.fbs.wowo.util.rongcloud;

import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

public class RedMessage extends BaseMessage {

    private transient static final String TYPE = "RedMsg";

    private String redId;   // 红包id
    private String asset;   // 发送金额
    private String tip;
    private String mode;    // 转账还是红包
    private String recv;    // 是否已领取

    public RedMessage(String redId, String asset, String tip, String mode, String recv) {
        this.redId = redId;
        this.asset = asset;
        this.tip = tip;
        this.mode = mode;
        this.recv = recv;
    }

    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, RedMessage.class);
    }

    public String getRedId() {
        return redId;
    }

    public void setRedId(String redId) {
        this.redId = redId;
    }

    public String getAsset() {
        return asset;
    }

    public void setAsset(String asset) {
        this.asset = asset;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getRecv() {
        return recv;
    }

    public void setRecv(String recv) {
        this.recv = recv;
    }
}
